package _1._0._0._127.ormrpc.services.WSGLWebServiceFacade;

public class WSGLWebServiceFacadeSrvProxyProxy implements WSGLWebServiceFacadeSrvProxy {
    private String _endpoint = null;
    private WSGLWebServiceFacadeSrvProxy wSGLWebServiceFacadeSrvProxy = null;

    public WSGLWebServiceFacadeSrvProxyProxy() {
        _initWSGLWebServiceFacadeSrvProxyProxy();
    }

    public WSGLWebServiceFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSGLWebServiceFacadeSrvProxyProxy();
    }

    private void _initWSGLWebServiceFacadeSrvProxyProxy() {
        try {
            wSGLWebServiceFacadeSrvProxy = (new WSGLWebServiceFacadeSrvProxyServiceLocator()).getWSGLWebServiceFacade();
            if (wSGLWebServiceFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSGLWebServiceFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSGLWebServiceFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSGLWebServiceFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSGLWebServiceFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSGLWebServiceFacadeSrvProxy getWSGLWebServiceFacadeSrvProxy() {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy;
    }

    public int deleteVoucher(String companyNumber, String period, String voucherNumber, String fexp) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.deleteVoucher(companyNumber, period, voucherNumber, fexp);
    }

    public int deleteVoucherByID(String companyNumber, String voucherID) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.deleteVoucherByID(companyNumber, voucherID);
    }

    public String importAccountBalance(com.kingdee.eas.fi.gl.app.WSWSAccountBalance[] accountBalanceCols) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.importAccountBalance(accountBalanceCols);
    }

    public String exploreVoucher(String companyId, int year, int periodNumber, String voucherType, String number) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.exploreVoucher(companyId, year, periodNumber, voucherType, number);
    }

    public String importInitAccountBalance(com.kingdee.eas.fi.gl.app.WSWSAccountBalance[] initAccountBalanceCol) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.importInitAccountBalance(initAccountBalanceCol);
    }

    public String checkVoucher(String comNumber, int year, int periodNumber, String number, double amount) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.checkVoucher(comNumber, year, periodNumber, number, amount);
    }

    public String importAssistBalance(com.kingdee.eas.fi.gl.app.WSWSAssistBalance[] assistBalanceCol) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.importAssistBalance(assistBalanceCol);
    }

    public String[] findVoucher(String comNumber, int year, int periodNnumber) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.findVoucher(comNumber, year, periodNnumber);
    }

    public void importInitAssistBalance(com.kingdee.eas.fi.gl.app.WSWSAssistBalance[] initAssistBalanceBalance) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        wSGLWebServiceFacadeSrvProxy.importInitAssistBalance(initAssistBalanceBalance);
    }

    public boolean deleteBalance(String companyNumber, int year, int period) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.deleteBalance(companyNumber, year, period);
    }

    public String[] importVoucher(wsvoucher.client.WSWSVoucher[] col, int isSubmit, int isVerify, int isCashflow) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.importVoucher(col, isSubmit, isVerify, isCashflow);
    }

    public String[] importVoucherOfReturnID(wsvoucher.client.WSWSVoucher[] col, int isSubmit, int isVerify, int isCashflow) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.importVoucherOfReturnID(col, isSubmit, isVerify, isCashflow);
    }

    public String[][] getOrg(String number) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getOrg(number);
    }

    public String[][] getAcctType(String orgNumber) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getAcctType(orgNumber);
    }

    public String[][] getAsstActType(String orgNumber, String acctTypeNum) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getAsstActType(orgNumber, acctTypeNum);
    }

    public String[][] getAcctTypeDetail(String orgNumber, String asstActTypeNum) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getAcctTypeDetail(orgNumber, asstActTypeNum);
    }

    public String[][] getAccount(String orgNumber, int fromRow, int toRow) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getAccount(orgNumber, fromRow, toRow);
    }

    public String[][] getAccountBalance(String orgNumber, String year, String period, int fromRow, int toRow) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getAccountBalance(orgNumber, year, period, fromRow, toRow);
    }

    public String[][] getAssitBalance(String orgnumber, String accountNumber, String year, String period, int fromRow, int toRow) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getAssitBalance(orgnumber, accountNumber, year, period, fromRow, toRow);
    }

    public String[][] getVoucher(String orgNumber, String year, String period, int fromRow, int toRow) throws java.rmi.RemoteException, glwebservicefacade.client.WSInvokeException {
        if (wSGLWebServiceFacadeSrvProxy == null)
            _initWSGLWebServiceFacadeSrvProxyProxy();
        return wSGLWebServiceFacadeSrvProxy.getVoucher(orgNumber, year, period, fromRow, toRow);
    }


}